package com.atguigu.gulimall.member.service;

import com.atguigu.common.to.SocialUser;
import com.atguigu.gulimall.member.exception.PhoneExistException;
import com.atguigu.gulimall.member.exception.UsernameExistException;
import com.atguigu.gulimall.member.vo.MemberLoginVo;
import com.atguigu.gulimall.member.vo.MemberRegisterVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author wuhaoyuan
 * @email wuhaoyuan@gmail.com
 * @date 2022-04-14 14:46:38
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo registerVo);

    void checkUsernameUnique(String Username) throws UsernameExistException;

    void checkPhoneUnique(String Phone) throws PhoneExistException;

    MemberEntity login(MemberLoginVo loginVo);

    MemberEntity socialLogin(SocialUser vo);
}

